home *** CD-ROM | disk | FTP | other *** search
-
-
-
- rrrrcccc0000((((1111MMMM)))) rrrrcccc0000((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- rc0 - run commands required to enter single-user mode or halt the system
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////eeeettttcccc////rrrrcccc0000
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This file is executed by an entry in /_e_t_c/_i_n_i_t_t_a_b and is responsible for
- performing those operations that bring the system down to either the
- administrative maintenance state, traditionally state ssss, called the
- "single-user" state, or to the system halt state in preparation for
- powering the system down.
-
- /_e_t_c/_r_c_0 runs files beginning with KKKK in /_e_t_c/_r_c_0._d. These files are
- executed by /_b_i_n/_s_h in ascii sort-sequence order (see FFFFIIIILLLLEEEESSSS below for
- more information).
-
- Each of these files can also check the state of the corresponding
- _c_h_k_c_o_n_f_i_g flag for that function. If the state is oooonnnn the script goes on
- to shut down or otherwise stop that function; if the state is ooooffffffff it does
- not attempt to stop that function on the theory that since that flag is
- off, it was never started in the first place. (See _c_h_k_c_o_n_f_i_g(1M)).
-
- The functions performed by the /_e_t_c/_r_c_0 command and associated /_e_t_c/_r_c_0._d
- files include:
-
- Stop System Services and Daemons
-
- Various system services (such as networking or print spooling) are
- gracefully terminated.
-
- When new services are added that should be terminated when the
- system is shut down, the appropriate files are installed in
- /_e_t_c/_r_c_0._d.
-
- Terminate Processes
-
- A SIGTERM signal is sent to all running processes by _k_i_l_l_a_l_l(1M);
- this lets processes stop themselves cleanly.
-
- Kill Processes
-
- A SIGKILL signal is sent to all remaining processes; no process can
- resist SIGKILL.
-
- At this point the only processes left are those associated with
- /_e_t_c/_r_c_0 and a few privileged system processes.
-
- Unmount All Filesystems
-
- Only the root filesystem (/) remains mounted.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- rrrrcccc0000((((1111MMMM)))) rrrrcccc0000((((1111MMMM))))
-
-
-
- FFFFIIIILLLLEEEESSSS
- Files in /_e_t_c/_r_c_0._d must begin with a KKKK followed by a number and the rest
- of the filename. Upon entering run level 0 or 6, files beginning with KKKK
- are executed with an argument of ssssttttoooopppp .... Files in /_e_t_c/_r_c_0._d are typically
- symbolic links to files in /_e_t_c/_i_n_i_t._d. Files beginning with other
- characters are ignored. See _r_c_2(1M) for more information.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- killall(1M), rc2(1M), shutdown(1M).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-